package com.thread.learn.thread2;

public class Demo2 implements Runnable{

	public void run() {
		while(true) {
			System.out.println("thread running...");
		}
	}
	
	public static void main(String[] args) {
		
		Thread thread=new Thread(new Demo2());
		thread.start();
		
	}
	
	
}
